﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HNAP_Doc.ascx.cs" Inherits="FSC.HaNamAPApplication.Doc" %>

<%@ Register src="HNAP_LeftNav.ascx" tagname="LeftNav" tagprefix="uc1" %>

<div id="leftpanecontentbox">
	<div class="topline"></div>
	<div id="leftcontent" class="left">
		<uc1:LeftNav ID="LeftNav1" runat="server" />
	</div>
	<div id="primarycontent2" class="left" style="margin-bottom:20px;">
		<div class="moduletitle">Danh mục Văn bản</div>
		
		Tên Văn bản:<asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>&nbsp;
		Lĩnh vực:<asp:DropDownList ID="ddlField" runat="server" Width="150px"></asp:DropDownList>&nbsp;
		Cơ quan:<asp:DropDownList ID="ddlOffice" runat="server" Width="150px"></asp:DropDownList>&nbsp;
        <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" 
            onclick="btnSearch_Click" />
        
		<div style="border-bottom:1px #ccc solid;height:1px;margin:10px 0 20px 0;"></div>
        
		<table cellspacing="0" cellpadding="0" border="0" class="tblGray">
			<tr>
				<th>#</th>
				<th>Tên Văn bản</th>
				<th>Lĩnh vực</th>
				<th>Cơ quan</th>
			</tr>
			<asp:Repeater ID="rptAP" runat="server">
                <ItemTemplate>
                    <tr>
				        <td><%# number++ %></td>
				        <td>
				            <asp:HyperLink ID="hplName" runat="server" NavigateUrl='<%# CurrentUrlWithoutParam + "?page=DocDetail&did=" + Eval("ID") %>'><%# Eval("Name") %></asp:HyperLink>
                        </td>
				        <td><%# Eval("Field") %></td>
				        <td><%# Eval("Office") %></td>
			        </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
			        <tr class="trodd">
				        <td><%# number++ %></td>
				        <td>
				            <asp:HyperLink ID="hplName" runat="server" NavigateUrl='<%# CurrentUrlWithoutParam + "?page=DocDetail&did=" + Eval("ID") %>'><%# Eval("Name") %></asp:HyperLink>
                        </td>
				        <td><%# Eval("Field") %></td>
				        <td><%# Eval("Office") %></td>
			        </tr>
                </AlternatingItemTemplate>
            </asp:Repeater>
		</table>
	</div>
	<div class="clear"></div>
</div>